//
//  YYEButton.m
//  YuYingEDU
//
//  Created by 胡波 on 2017/12/29.
//  Copyright © 2017年 胡波. All rights reserved.
//

#import "YYEButton.h"

@implementation YYEButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)layoutSubviews {
    [super layoutSubviews];
    
    CGRect titleF = self.titleLabel.frame;
    CGRect imageF = self.imageView.frame;
    
    titleF.origin.x = 0;
    self.titleLabel.frame = titleF;
    
    imageF.origin.x = CGRectGetMaxX(titleF) + 5;
    self.imageView.frame = imageF;
    
}

@end
